package cn.iocoder.yudao.module.api.trade.order.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

@Schema(description = "用户 APP - 订单送达 DTO")
@Data
public class TradeOrderArriveDTO {

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "订单编号不能为空")
    private Long id;

    @Schema(description = "凭证图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "凭证图片不能为空")
    @Size(max = 6, message = "凭证图片不能超过 6 张")
    private List<String> picUrls;

    @Schema(description = "备注", example = "电话联系不上")
    @Length(max = 255, message = "备注长度不能超过 255 个字符")
    private String remark;

}
